<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form th:action="@{/login2}" method="post">
        <h3> 登录 : <span th:text="${msg}"></span> </h3>
        <p>
            用户名:<input type="text" name="userName"/>
        </p>
        <p>
            密 码:<input type="password" name="password"/>
        </p>
        <p>
            <input type="submit" value="立即登录" />
        </p>
    </form>
</body>
</html>